<template>
  <div>
    <div tabindex="0" class="plusButton">
      <!-- <svg class="plusIcon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30">
     <g mask="url(#mask0_21_345)">
       <path d="M13.75 23.75V16.25H6.25V13.75H13.75V6.25H16.25V13.75H23.75V16.25H16.25V23.75H13.75Z"></path>
     </g>
   </svg> -->
      <el-icon class="icon1"><Back /></el-icon>
    </div>
  </div>
</template>

<script setup lang="ts"></script>
<style scoped lang="scss">
/* Note that you only needs to edit the config to customize the button! */

.plusButton {
  /* Config start */
  --plus_sideLength: 2.375rem;
  --plus_topRightTriangleSideLength: 0.9rem;
  /* Config end */
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid white;
  width: var(--plus_sideLength);
  height: var(--plus_sideLength);
  background-color: #fdeed9;
  overflow: hidden;
  border-radius: 6px;
}
.plusButton::before {
  position: absolute;
  content: '';
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-width: 0 var(--plus_topRightTriangleSideLength) var(--plus_topRightTriangleSideLength) 0;
  border-style: solid;
  border-color: transparent#f08f00 transparent transparent;
  transition-timing-function: ease-in-out;
  transition-duration: 0.2s;
}

.plusButton:hover {
  cursor: pointer;
}

.plusButton:hover::before {
  --plus_topRightTriangleSideLength: calc(var(--plus_sideLength) * 2);
}

.plusButton:focus-visible::before {
  --plus_topRightTriangleSideLength: calc(var(--plus_sideLength) * 2);
}

.plusButton > .plusIcon {
  fill: #f08f00;
  width: calc(var(--plus_sideLength) * 0.7);
  height: calc(var(--plus_sideLength) * 0.7);
  z-index: 1;
  transition-timing-function: ease-in-out;
  transition-duration: 0.2s;
}

.plusButton:hover > .plusIcon {
  fill: #fdeed9;
  transform: rotate(180deg);
}

.plusButton:focus-visible > .plusIcon {
  fill: #fdeed9;
  transform: rotate(180deg);
}
.plusButton .icon1 {
  color: #f08f00 !important;
}
.plusButton:hover .icon1 {
  color: #fdeed9 !important;
}
</style>
